<% include ./header.ejs%>

    <body>
        <h2>注册用户</h2>
        <div class=" register-wrapper ">
            <div class="form-wrapper ">
                <input type="text " id="userName">
                <label for="name">姓名</label>
            </div>
            <div class="form-wrapper ">
                <input type="password " id="userPassword">
                <label for="password ">密码</label>
            </div>
            <form target="picTarget " method="POST" action="/api/upload " enctype="multipart/form-data">
                <input id="file" type="file" name="avatar">
                <img id="showImg" width="100" height="100" src="images/upload.jpg" alt=" ">
            </form>
            <button>提交</button>
            <iframe style="display:none " id="picTarget" name="picTarget " frameborder="0"></iframe>
        </div>


    </body>

    <script src="js/ajax.js"></script>
    <script src="js/register.js"></script>

    </html>